package com.wontube.core.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.sql.Connection;

/**
 * @author yuechao
 * 
 * 自动事务标记
 * 
 */
@Target({ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface AutoTransSupport {
	/**
	 * 事务隔离级别，仅在启用事务时起作用
	 * 
	 * @return
	 */
	int transIsolation() default Connection.TRANSACTION_READ_COMMITTED;
}
